package com.cskaoyan.controller.zyl_wxlogin;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@Data
public class Wxin_weixin1 {
    @JsonProperty("res")
    private ResDTO res;

    @NoArgsConstructor
    @Data
    public static class ResDTO {
        @JsonProperty("encryptedData")
        private String encryptedData;
        @JsonProperty("iv")
        private String iv;
        @JsonProperty("signature")
        private String signature;
        @JsonProperty("userInfo")
        private UserInfoDTO userInfo;
        @JsonProperty("rawData")
        private String rawData;
        @JsonProperty("errMsg")
        private String errMsg;

        @NoArgsConstructor
        @Data
        public static class UserInfoDTO {
            @JsonProperty("nickName")
            private String nickName;
            @JsonProperty("gender")
            private Integer gender;
            @JsonProperty("language")
            private String language;
            @JsonProperty("city")
            private String city;
            @JsonProperty("province")
            private String province;
            @JsonProperty("country")
            private String country;
            @JsonProperty("avatarUrl")
            private String avatarUrl;
        }
    }
}
